package com.colorful.insuranceproject.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by handsome-Bob on 2017/8/18.
 */

public class DrugAddressBean implements Parcelable {

    private double distance;
    private String eAddressId;// id
    private String address;//  地址
    private String name;//  药店名
    private String shopName;// 门店名
    private String cityName;//  城市名
    private String mobile;//  手机号
    private double latitude;// 经度
    private double longitude;//  纬度

    public DrugAddressBean() {
    }

    public DrugAddressBean(double distance, String eAddressId, String address, String name, String shopName, String cityName, String mobile, double latitude, double longitude) {
        this.distance = distance;
        this.eAddressId = eAddressId;
        this.address = address;
        this.name = name;
        this.shopName = shopName;
        this.cityName = cityName;
        this.mobile = mobile;
        this.latitude = latitude;
        this.longitude = longitude;
    }

    public double getDistance() {
        return distance;
    }

    public void setDistance(double distance) {
        this.distance = distance;
    }

    public String geteAddressId() {
        return eAddressId;
    }

    public void seteAddressId(String eAddressId) {
        this.eAddressId = eAddressId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    @Override
    public String toString() {
        return "DrugAddressBean{" +
                "distance=" + distance +
                ", eAddressId='" + eAddressId + '\'' +
                ", address='" + address + '\'' +
                ", name='" + name + '\'' +
                ", shopName='" + shopName + '\'' +
                ", cityName='" + cityName + '\'' +
                ", mobile='" + mobile + '\'' +
                ", latitude=" + latitude +
                ", longitude=" + longitude +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeDouble(this.distance);
        dest.writeString(this.eAddressId);
        dest.writeString(this.address);
        dest.writeString(this.name);
        dest.writeString(this.shopName);
        dest.writeString(this.cityName);
        dest.writeString(this.mobile);
        dest.writeDouble(this.latitude);
        dest.writeDouble(this.longitude);
    }

    protected DrugAddressBean(Parcel in) {
        this.distance = in.readDouble();
        this.eAddressId = in.readString();
        this.address = in.readString();
        this.name = in.readString();
        this.shopName = in.readString();
        this.cityName = in.readString();
        this.mobile = in.readString();
        this.latitude = in.readDouble();
        this.longitude = in.readDouble();
    }

    public static final Creator<DrugAddressBean> CREATOR = new Creator<DrugAddressBean>() {
        @Override
        public DrugAddressBean createFromParcel(Parcel source) {
            return new DrugAddressBean(source);
        }

        @Override
        public DrugAddressBean[] newArray(int size) {
            return new DrugAddressBean[size];
        }
    };
}
